package com.charles.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * @author charles
 * @date 2021/12/21 18:28
 */
@Getter
public class ExportEvent<E> extends ApplicationEvent {

    List<E> data;

    private String fileName;

    private String sheetName;

    private Class<?> aClass;

    public ExportEvent(Object source, String fileName, String sheetName, Class aClass, List<E> data) {
        super(source);
        this.fileName = fileName;
        this.sheetName = sheetName;
        this.aClass = aClass;
        this.data = data;
    }

}
